package com.hyzx.qbasic.admin.domain.repository;

import com.hyzx.qbasic.admin.model.po.CommonAttachmentPO;
import com.hyzx.qbasic.admin.model.po.CommonImagePO;

import java.util.List;

/**
 * Created by 黄江华 on 2018/8/10
 */

public interface ICommonFileRepository {

    boolean saveImage(CommonImagePO image);

    boolean saveFile(CommonAttachmentPO attachment);

    boolean deleteAttachment(Integer fileId);

    boolean deleteAttachmentByBusinessId(String businessId);

    boolean deleteImage(Integer imageId);

    boolean deleteImageByBusinessId(String businessId);

    CommonAttachmentPO getAttachmentInfo(Integer fileId);

    CommonImagePO getImageInfo(Integer imageId);

    List<CommonAttachmentPO> getAttachmentList(String businessId);

    List<CommonImagePO> getImageList(String businessId);
}
